public class Sxian {
    public static void main(String[] args) {
        int n = 3;
        for (int i = 1; i < Math.pow(10, n); i++) {
            int sum = 0;
            int temp = i;
            while (temp > 0) {
                int digit = temp % 10;
                sum += Math.pow(digit, n);
            }
        }
    }
}
